/*tickettaker.h*/
#ifndef TICKETTAKER_H
#define TICKETTAKER_H

struct TicketTaker{
	int index;
	int replyTo;
	int msgLock;
	int myName;
	int sleepCon;
	
	int SizeOfGroupNotInTheater;
	int runScheduler;
	int status;
	int onBreak;	
	int numMsgs;
	struct Message tempMsg;
    struct Message msgList[3];
};

void TicketTaker_Scheduler(int index);
struct Message TicketTaker_GetMessage(int index, int name);

int  TicketTaker_CallNextInLine(int index);
void TicketTaker_AcceptTickets(int index, int cust);
void TicketTaker_SendInPerson(int index);
void TicketTaker_TellTechImIdle(int index);
void TicketTaker_TellStatus(int index);
void TicketTaker_ContinueOn(int index);
void TicketTaker_GoOnBreak(int index);
void TicketTaker_ComeOffBreak(int index);

#endif